Tools Plus is now available for the complete series of Metrowerks compilers in addition to the currently supported Symantec compilers. Tools Plus libraries are now available for:
Symantec (THINK) C/C++ (680x0)
THINK Pascal (680x0)
CodeWarrior C/C++ (680x0)
CodeWarrior Pascal (680x0)
CodeWarrior C/C++ (PowerPC-native)
CodeWarrior Pascal (PowerPC-native)
Internally, portions of Tools Plus have been rewritten to ensure compatibility and transparency across all languages and compilers. The only change that is visible to you, the programmer, is the DrawThermometer routine.
•• The TPPopUpMenuSpec structure (record) has been changed to ensure compatibility with constants defined by Apple. The useWFont field has been renamed to UseWindowFont.
•• The interface to the DrawThermometer routine has been revised to ensure compatibility between all languages and compilers. Replace the related passage in your User Manual with the following revised information:
DrawThermometer
~~~~~~~~~~~~~~
Draw the standard Macintosh progress thermometer in the current window.
pascal void DrawThermometer (const Rect *DisplayRect,
DrawThermometer draws the standard Macintosh progress thermometer, such as the one seen in the Finder when a file is being copied or duplicated. The thermometer is drawn according to the system that your Macintosh is running, and the settings of the monitor(s) on which the thermometer is displayed. The thermometer drawn by this routine is always similar to the one seen in the Finder.
DisplayRect is the display rectangle in the current window’s local co-ordinates. If the rectangle is taller than it is wide, a vertical thermometer is created. Otherwise a horizontal thermometer is drawn.
Value and Maximum are used to express the percentage completed (completed = value ÷ maximum). Progress is indicated in a left to right motion on horizontal thermometers, and from the bottom up on vertical ones. Use negative values to have the thermometer indicate progress in the reverse direction.
Note: Even though DrawThermometer draws the thermometer very
quickly, it may not be fast enough for applications that perform
many thousands or even millions of operations during the
thermometer’s progression. In that case, use the toolbox’s
TickCount function to time calls to DrawThermometer at a less